Problem Note 53962: Using implicit pass-through to Netezza with the WEEKDAY() function generates incorrect SQL results
When using SAS/ACCESS® Interface to Netezza, after you assign a LIBNAME statement to Netezza, the WEEKDAY() function is incorrectly passed to the database. This causes incorrect results to be returned.
For example, the Netezza table tbl1 has a date field called dd:
libname nz netezza server=nz-server user=nz-user pwd=nz-pwd database=nz-db;
proc sql;
select dd, weekday(dd) as week
from nz.tbl1;
quit;
The SAS log with tracing shows the following:
ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data.
As a workaround, do not use the WEEKDAY() function when running a LIBNAME statement with SAS/ACCESS Interface to Netezza.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Netezza | Linux for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
HP-UX IPF | 9.4 TS1M2 | 9.4 TS1M3 |
64-bit Enabled Solaris | 9.4 TS1M2 | 9.4 TS1M3 |
64-bit Enabled AIX | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Enterprise 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 R2 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft® Windows® for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2014-09-23 11:50:30 |
Date Created: | 2014-08-21 15:46:20 |